using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Raster._MosaicDataset
{
    /// <summary>
    /// <para>Clear Pixel Cache</para>
    /// <para>Clears the pixel cache associated with a mosaic dataset.</para>
    /// <para>清除与镶嵌数据集关联的像素缓存。</para>
    /// </summary>    
    [DisplayName("Clear Pixel Cache")]
    public class ClearPixelCache : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ClearPixelCache()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_mosaic_dataset">
        /// <para>Mosaic Dataset</para>
        /// <para>The input mosaic dataset with the pixel cache to be deleted.</para>
        /// <para>包含要删除的像素缓存的输入镶嵌数据集。</para>
        /// </param>
        public ClearPixelCache(object _in_mosaic_dataset)
        {
            this._in_mosaic_dataset = _in_mosaic_dataset;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Clear Pixel Cache";

        public override string CallName => "management.ClearPixelCache";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_mosaic_dataset, _generated_before];

        /// <summary>
        /// <para>Mosaic Dataset</para>
        /// <para>The input mosaic dataset with the pixel cache to be deleted.</para>
        /// <para>包含要删除的像素缓存的输入镶嵌数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Mosaic Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_mosaic_dataset { get; set; }


        /// <summary>
        /// <para>Generated Before</para>
        /// <para>All cache generated before this date will be deleted.</para>
        /// <para>在此日期之前生成的所有缓存都将被删除。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Generated Before")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _generated_before { get; set; } = null;


        public ClearPixelCache SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}